
create function dbo.sf_enganchesDif( @p_idlote varchar(10) )
returns int
as 
begin
	declare	@retval int
	select	@retVal = count(*)
	from	enganches
	where	cvelote = 'ABS01A002'
	return	@retVal
end